package com.example.mongodb.demo.service;

import com.alibaba.fastjson.JSONObject;
import com.example.mongodb.demo.model.entity.Goods;
import com.example.mongodb.demo.model.entity.Shop;
import com.mongodb.BasicDBObject;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface IShopService {

    Shop findById(String id);

    List<BasicDBObject> findGoodsByShopId(String shopId, Pageable pageable);

    Shop save(Shop blog);

    void delete(Shop blog);

    long update(Shop blog);

    List<Shop> findByShopName(String shopName);

    List<Shop> findByIsOpen(int isOpen);

    Page<Shop> findAll(Shop blog, Pageable pageable);
}
